﻿<%@ Page Language="C#" MasterPageFile="~/Auth/AuthFramework.Master" AutoEventWireup="true" 
CodeBehind="ApplicationDetail.aspx.cs" Inherits="ChapterX.Auth.Teacher.ApplicationDetail"%>

<%@ Register Src="~/Modules/BookEntryModule.ascx" TagName="BookEntry" TagPrefix="Module" %>
<%@ Register Src="~/Modules/BookCourseListModule.ascx" TagName="BookCourseList" TagPrefix="Module" %>
<%@ Register Src="~/Modules/UploadsModule.ascx" TagName="Uploads" TagPrefix="Module" %>
<%@ Register Src="~/Modules/BookChapterListModule.ascx" TagName="BookChapterList" TagPrefix="Module" %>

<%@ Import Namespace="ChapterX.Common" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" runat="server">
    <form id="AppDetailForm" runat="server">
        <div style="margin-bottom: 20px">
            <asp:HiddenField ID="hf_BookId" runat="server" />
            <asp:HyperLink ID="hl_GoDigitizing" runat="server" CssClass="form-button" Text="去数字化"></asp:HyperLink>
            <asp:Button ID="btn_DenyApp" runat="server" CssClass="form-button" Text="拒绝申请" 
                OnClientClick="javascript:return confirm('您确定要拒绝该申请吗？')" 
                onclick="btn_DenyApp_Click" />
        </div>
        
        <Module:BookEntry ID="Module_BookEntry" runat="server" />
        <Module:BookCourseList ID="Module_BookCourseList" runat="server" DataNavigateUrl="~/Auth/Teacher/CourseEntry.aspx" />
        
        <div>
            <span>数字化状态：<%= CommonDefinition.getStringDigitizationStatus(DigiStatus) %></span>
            <asp:HyperLink ID="hl_SetAccessibility" runat="server" Text="设置访问权限"  CssClass="form-button"></asp:HyperLink>
            <asp:Label ID="l_Tip" runat="server" Visible="false"></asp:Label>
            <% if (DigiStatus == (int)CommonDefinition.DigitizationStatus.digitized)
               { %>
                    <Module:BookChapterList ID="Module_BookChapterList" runat="server" DataNavigateUrl="~/Auth/Librarian/ChapterEntry.aspx" />         
            <% } %>
        </div>
       
    </form>
</asp:Content>